home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_13_05
/
allison
/
person2.h
< prev
next >
Wrap
C/C++ Source or Header
|
1995-03-12
|
456b
|
24 lines
LISTING 19 - A flawed Person class that stores text on the heap
// person2.h
#include "date5.h"
#include "bool.h"
class ostream;
class Person
{
friend ostream & operator<<(ostream &, const Person &);
public:
Person();
Person(const char *,const char *,const Date &,const char *);
~Person();
bool operator==(const Person &) const;
private:
char * last;
char * first;
Date birth;
char * ssn;
};